<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>仓储系统--菜单管理</title>
  <link rel="stylesheet" href="css/base.css">
  <script src="js/base.js"></script>
</head>
<body>
<div class="all">
  <script src="js/top.js"></script>
  <div class="cnt">
    <div class="cnt"><div style="min-height:400px" class="nav" id="nav"></div>
    <script src="js/nav.js"></script>
<!--      <script>-->
<!--        setColor(1)-->
<!--      </script>-->
    <div class="main">
      <div class="main_top">
        <h3>菜单管理</h3>
        <div class="search" id="search_div">
          <input id="stitle" placeholder="菜单名称"/>
          <img id="search_btn"
               onclick="search()"
               width="16" src="images/search.png"/>
        </div>
        <div class="btn" id="add_btn"
             onclick="add()">新增菜单</div>
        <div class="btn" id="save_btn" style="display:none"
             onclick="save()">保存</div>
        <div class="btn" id="return_btn" style="display:none"
             onclick="returnMain()">返回</div>
      </div>
      <div id="loading" style="text-align: center;height:300px;line-height: 300px">
        <img src="images/loading.webp"/>
      </div>
      <div id="list_div"></div>
      <div id="page_div">
        <div class="page_btn">首页</div>
        <div class="page_btn">上一页</div>
        <div class="page_btn"><span id="current_page"></span>/<span id="total_page"></span></div>
        <div class="page_btn" onclick="next_page()">下一页</div>
        <div class="page_btn">尾页</div>
        <div class="page_btn"><input id="input_page" /></div>
        <div class="page_btn" onclick="to_page()">跳转</div>
      </div>
      <div id="add_div" style="display:none;">
        <table>
          <tr class="input_div">
            <td><span style="color:red">* </span></td>
            <td align="left">菜单名称：</td>
            <td><input id="menu_name"/><br/>
              <div id="menu_name_error" style="color:red"></div>
            </td>
          </tr>
          <tr class="input_div">
            <td><span style="color:red">* </span></td>
            <td align="left">菜单网址：</td>
            <td><input  id="url"/></td>
          </tr>

        </table>
      </div>
    </div>
  </div>
    <div class="bot">
      Copyright © 2022-2023 XINLING. All Rights Reserved.
    </div>
</div>

<script src="js/menu.js"></script>
</body>
</html>